/**
 * 
 */
package com.swg.cocobox.message.internal;

import java.nio.charset.Charset;

import com.swg.cocobox.message.Message;

/**
 * @author satriaprayoga
 *
 */
public class UTFMessageBuilder implements MessageBuilder {

	@Override
	public Message buildPrivate(String origin, String destination,
			String content) {
		return new PrivateMessageImpl(origin, content, destination, Charset.forName("UTF-8"));
	}

	@Override
	public Message buildBroadcast(String origin, String content) {
		return new BroadcastMessageImpl(origin, content, Charset.forName("UTF-8"));
	}

}
